package org.jeecg.modules.rooms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务维修
 * </p>
 *
 * @author fendo
 * @since 2023-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ces_service_maintenance")
public class CesServiceMaintenance extends Model<CesServiceMaintenance> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 酒店
     */
    private String hotelId;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型 1服务 2维修
     */
    private Integer type;

    /**
     * 服务模块 1 物品 2内容
     */
    private Integer moduleType;

    /**
     * 分类ID
     */
    private String classify;

    /**
     * 创建时间
     */
    @TableField("creatAt")
    private LocalDateTime creatAt;

    /**
     * 修改时间
     */
    @TableField("updateAt")
    private LocalDateTime updateAt;

    /**
     * 逻辑删除字段
     */
    private Boolean invalid;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String NAME = "name";

    public static final String TYPE = "type";

    public static final String MODULE_TYPE = "module_type";

    public static final String CLASSIFY = "classify";

    public static final String CREATAT = "creatAt";

    public static final String UPDATEAT = "updateAt";

    public static final String INVALID = "invalid";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
